package 
{
	import net.flashpunk.Engine;
	import net.flashpunk.FP;
	import flash.display.LoaderInfo;
	/**
	 * © 2012 TheJavaArcade.com
	 */	
	[SWF(width = "600", height = "480", frameRate = "25")]

	[Frame(factoryClass="Preloader")]
	public class Main extends Engine{

		public function Main():void {			
			super(600, 480, 55, false);
			FP.world = new TitleWorld;
			//FP.console.enable();
			FP.screen.color = 0X313053;
		
			try {
				var paramObjuserName:Object = LoaderInfo(this.root.loaderInfo).parameters.userName;
				var paramObjuserType:Object = LoaderInfo(this.root.loaderInfo).parameters.userType;
				Assets.userNameStr = paramObjuserName.toString();
				Assets.userTypeStr = paramObjuserType.toString();
				trace(paramObjuserName.toString()+" "+paramObjuserType.toString);				
			}catch (errorObj:Error) {
				Assets.userNameStr = "";
				Assets.userTypeStr = "guest";
			}			
		}

	}

}